package com.web.oa.mapper;


import com.web.oa.pojo.MenuTree;
import com.web.oa.pojo.SysPermission;
import com.web.oa.pojo.SysRole;

import java.util.List;

public interface SysPermissionMapper2 {

    List<MenuTree> selectMenuTrees();

    List<SysPermission> getSubMenu();

    List<MenuTree> selectAllMenuTrees();

    List<SysPermission> selectPermissionListByEmployeeId(String name) throws Exception;

    List<SysPermission> selectPermissionListByRoleId(String roleId);

    SysRole selectRoleAndPermissionListByUserName(String userName);

    List<SysRole> selectRoleAndPermissionList();

}
